package t4tools.etodo.model;

import java.util.Date;
import java.util.List;

import t4tools.etodo.enums.TreeViewElementType;

public class Todo extends AbstractTreeElement {
	private TreeElement parent;

	private Date dueDate;
	private String text;
	private Date activateOn;

	public Todo(String name, TreeElement parent) {
		super(name, TreeViewElementType.TODO);
		this.parent = parent;
		parent.getChildren().add(this);
	}

	@Override
	public TreeElement getParent() {
		return parent;
	}

	@Override
	public List<TreeElement> getChildren() {
		return null;
	}

	@Override
	public boolean hasChildrent() {
		return false;
	}

	public Date getDueDate() {
		return dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Date getActivateOn() {
		return activateOn;
	}

	public void setActivateOn(Date activateOn) {
		this.activateOn = activateOn;
	}

}
